package com.quanshu.change.login.view;

import android.os.Bundle;
import android.view.View;
import android.widget.LinearLayout;
import android.widget.TextView;

import com.gyf.barlibrary.ImmersionBar;
import com.quanshu.exchange.R;
import com.quanshu.exchange.support.utils.RxViewHelper;
import com.quanshu.exchange.ui.base.BaseActivity;

import butterknife.BindView;
import butterknife.ButterKnife;

public class ResetPasswordSuccessfulActivity extends BaseActivity {
    public static final String TIPS_SHOW = "tips_show";
    @BindView(R.id.tip)
    LinearLayout tip;
    @BindView(R.id.center_line)
    View centerLine;
    @BindView(R.id.s_return)
    TextView sReturn;
    @BindView(R.id.tips)
    TextView tips;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_reset_password_successful);
        ButterKnife.bind(this);
        initView();
    }

    private void initView() {
        ImmersionBar.with(this).statusBarDarkFont(true).statusBarColor("#FFFFFF").init();
        int a = getIntent().getExtras().getInt(TIPS_SHOW, 0);
        if (a == 1) {
            //显示提示
            tips.setVisibility(View.VISIBLE);
        } else {
            tips.setVisibility(View.GONE);
        }

        RxViewHelper.getInstance().clicks(sReturn, aVoid -> finish());
    }
}
